package com.pi.smart.client.response;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

public class BaseMessage implements Serializable {
    private static final long serialVersionUID = -4658013244266450221L;
    /**
     * 消息时间
     */
    private Long ts;
    /**
     * 消息业务id, 用于幂等等相关判断
     */
    private Long messageId;

    public Long getTs() {
        return ts;
    }

    public void setTs(Long ts) {
        this.ts = ts;
    }

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
